<?php


class Game
{	
	
	/*****************************
				参数
	*****************************/

	//游戏类型
	const Game_Type = 6;

	/*	房间用户uid	*/
	const RoomUser_UID			= "[roomid]:[accountid]";
	
	
	/*	开局默认分数	*/
	const Default_Score			= 10;
	
	
	/*	游戏人数范围	*/
	const GameUser_MinCount		= 4;
	const GameUser_MaxCount		= 4;

	
	/*	用户状态	*/
	const AccountStatus_Initial		= 0;	//首次进房初始状态
	const AccountStatus_Notready	= 1;	//未准备
	const AccountStatus_Ready		= 2;	//已准备

    const AccountStatus_Play		= 4;	//打牌
	const AccountStatus_End			= 5;	//结束

	/*	游戏中状态	*/
	const PlayingStatus_Waiting		= 1;	//等待别人中
	const PlayingStatus_Choosing	= 2;	//出牌中
	const PlayingStatus_Peng		= 3;	//碰牌中
	const PlayingStatus_Gang		= 4;	//杠牌中
	const PlayingStatus_QiangGang	= 5;	//抢杠
	
	/*	房间状态	*/
	const RoomStatus_Waiting		= 1;	//等待中
	const RoomStatus_Playing		= 2;	//游戏中
	const RoomStatus_Closed			= 3;	//已关闭
	
	/*	操作超时时间	*/
	const LimitTime_Choosing		= 15;//  15;	//打牌时限
	const LimitTime_PengGang		= 10;//10;	//碰杠暂停时限
	const LimitTime_QiangGang		= 10;//10;	//抢杠暂停时限
	const LimitTime_ClearRoom		= 300;	//自动扫房暂停时限
	const LimitTime_BreakRoom		= 190;	//自动解散房间时限

	const Pause_Type_None			= 0;    //无
	const Pause_Type_Peng			= 1;	//碰
	const Pause_Type_Gang			= 2;	//杠
	const Pause_Type_Pass			= 3;	//过

	/*	高番胡倍数  */
	const Multiple_7Dui		= 8;
	const Multiple_Q1S		= 10;
	const Multiple_13Y   	= 13;
}


/* End of file constants.php */
/* Location: ./application/config/constants.php */
